import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import axios from 'axios'
import VueAxios from 'vue-axios'
import { Dialog ,Button,NavBar,Tabbar, TabbarItem,Icon,Toast,Field,Swipe, SwipeItem} from 'vant';
import "vant/lib/index.css";
import "./style/index.less";
// 创建一个新的 store 实例
const app = createApp(App)
app.use(Toast);
app.use(Button);
app.use(Dialog);
app.use(NavBar);
app.use(Tabbar);
app.use(TabbarItem);
app.use(Field);
app.use(Icon);
app.use(Swipe);
app.use(SwipeItem);
app.use(router)
app.use(VueAxios, axios)
app.provide('axios', app.config.globalProperties.axios)
app.mount('#app')
